﻿<@layout src="Page/SubLayout.htm" /@>

    <$ArticleContent Content="这篇文章的标题来源是查询字符串"  Title="标题：{=QueryString['title']=}">
        <div class="article">
            <h2>{=Title=}</h2>
            <p>
                {=Content=}
                <br />
                下面是来自微件的数据：<br />
                {=Details=}
            </p>
        </div>
    </ArticleContent$>

    <h2>{=Global=}</h2>
    <h2>{=TestClass.HelloString=}</h2>
    <h2>Today is: {=DateTime.Today=}</h2>

    <$CustomHtml /$>
    <$CustomHtml name="HeaderHtml" /$>
    <$CustomHtml name="FooterHtml" /$>
    <$CustomHtml>
        <h2>直接在网页中定义模板的CustomHtml微件。</h2>
        <p>
        !其实对已customhtml微件而言，直接在网页中定义模板，不如直接在网页中书写html, :) </p>
    </CustomHtml$>

    <$Pager TotalSize="73" PageSize="5" CurPage="{=QueryBag.pageCode=}">
        <div class='rdPager'>
        共：{=WidgetArgs.TotalSize=}条 {=WidgetArgs.PageSize=}条/页 {=WidgetArgs.CurPage=}页/{=WidgetArgs.TotalPage=}页
        {?PrevTemplate?}
        {?ItemTemplate?}
        {?NextTemplate?}
        <?PrevTemplate>
            <a href='{=PrevUrl=}'>上一页</a>
        </PrevTemplate?>
        <?NextTemplate>
            <a href='{=NextUrl=}'>下一页</a>
        </NextTemplate?>
        <?ItemTemplate>
            <a href='{=ItemUrl=}'>{=Item.Key=}</a>
        </ItemTemplate?>
        <?CurrentItemTemplate>
            <span class='current'>{=Item.Key=}</span>
        </CurrentItemTemplate?>
    </Pager$>

    <$Repeater RootSource="ViewBag.DictTree" ItemSource="Value" ChildSource="Value" >

            <ul>RRRRRRR
                {?ItemTemplate?}
            </ul>

        <?RootItemTemplate>
            <li>root item <bold>{=RootItem.Key=}:</bold>
                <ul>IIIIIIIIIIIIII
                    {?ItemTemplate?}
                </ul>
            </li>
        </RootItemTemplate?>

        <?ItemTemplate>
            <li> item <bold>{=Item.Key=}:</bold>
                <ul>CCCCCCCCCCCCCC
                    {?ItemTemplate?}
                </ul>
            </li>
        </ItemTemplate?>

        <?ChildItemTemplate>
            <li> child item
                <bold>{=ChildItem.Key=}:</bold>{=ChildItem.Value=}
            </li>
        </ChildItemTemplate?>

    </Repeater$>
